package in.muton.edushare.pages.univ;

import in.muton.edushare.components.autocomplete.PeoplePanel;

import java.util.Arrays;

import org.apache.wicket.PageParameters;

import com.edushare.common.constants.ApplicationConstants;
import com.edushare.common.vo.UserRoles;

public class UnivInvite extends UnivBase {

	public UnivInvite(PageParameters params) {
		super(params);
		prc.check(Arrays.asList(UserRoles.ADMIN_ROLE));
		add(new PeoplePanel("invite", this, getModel()));
	}

	@Override
	public String getActivePage(PageParameters p) {
		return "UnivInvite";
	}

	@Override
	public String getPageTitle() {
		return getLoggedInUser().getCompleteUserName() + " | "
				+ getModel().getObject().getUniversityName()
				+ " | Invite People | " + ApplicationConstants.APPLICATION_NAME;
	}

}
